cd /Users/gikkiares/Desktop/PP_PersonalProject/MP01_MySoftwareProject/Msp07_MyLibProject/SpMlp02_Android/01_JsjUtilitySdkDemoProject/05_Make/JsJUtilitySdkDemoRepo/js-jutility-sdk
tagName=$1
if [[ $tagName == "" ]]; then
  exit 1
fi
echo "tagName is: $tagName"
status=`git status -s`
echo "status is: $status"
if [[ "$status" == "" ]];then
  exit 0
fi
git add .
[[ $? != 0 ]] && echo "git add error" && exit 1
git commit -m $tagName
[[ $? != 0 ]] && echo "git commit error" && exit 1
git push
[[ $? != 0 ]] && echo "git push error" && exit 1
git tag $tagName
[[ $? != 0 ]] && echo "git tag error" && exit 1
git push origin $tagName
[[ $? != 0 ]] && echo "git push tag error" && exit 1
exit 0